#coding=utf-8
import wsgiref.handlers
import os
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class MainPage(webapp.RequestHandler):
  def get(self):
    template_values = {
      'title': '希谭信息技术实验室'
    }
    path = os.path.join(os.path.dirname(__file__), 'template/index.html')
    self.response.out.write(template.render(path, template_values))

def main():
  application = webapp.WSGIApplication(
    [('/', MainPage)],
    debug = True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main))":
  main()
